<?php

require '../common.php';
$id =$_POST["id"];
$name =$_POST["name"];
$tagId = $_POST["tagId"];
$content =$_POST["content"];

query("update article set name='$name',tag_id='$tagId',content='$content' where id='$id'");
redirect("article.php","更新成功！");
?>